package LawsonTransformJava.data;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TblHRHistory {
	public int 		employee	=0; 
	public Date		beg_date	=null; 
	public int 		fld_nbr		=0; 
	public String 	a_value		=null; 
	public Date 	d_value		=null; 	
	public float 	n_value		=0; 	
	public String   user_id     =null;
	public int 		pos_level	=0; 
	public String 	currency_code	=null; 
	public String 	action_code	=null; 	
	public String 	reason_01	=null; 
	public String 	reason_02	=null; 
	public Date 	ant_end_date	=null;
	
	private DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
	private DateFormat df2 = new SimpleDateFormat("yyyyMMdd");
	private String text; 
	
	public void setEmployee(int employee) {
		this.employee = employee;
	}
	public void setBeg_date(Date beg_date) {
		this.beg_date = beg_date;
	}
	public void setFld_nbr(int fld_nbr) {
		this.fld_nbr = fld_nbr;
	}
	public void setA_value(String a_value) {
		this.a_value = a_value;
	}
	public void setD_value(Date d_value) {
		this.d_value = d_value;
	}
	public void setN_value(float n_value) {
		this.n_value = n_value;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}	
	public void setPos_level(int pos_level) {
		this.pos_level = pos_level;
	}
	public void setCurrency_code(String currency_code) {
		this.currency_code = currency_code;
	}
	public void setAction_code(String action_code) {
		this.action_code = action_code;
	}
	public void setReason_01(String reason_01) {
		this.reason_01 = reason_01;
	}
	public void setReason_02(String reason_02) {
		this.reason_02 = reason_02;
	}
	public void setAnt_end_date(Date ant_end_date) {
		this.ant_end_date = ant_end_date;
	}
	
	public int getEmployee() {
		return employee;
	}
	public String getBeg_date() {
		if (beg_date==null)
			{text = "";}
		else
			{String date =(beg_date!=null?df2.format(beg_date).toString():""); 
	    if (date.equals("17000101"))
			{text = "";}
	    else
		{text ="\"" + df.format(beg_date).toString() + "\"";;}}
		return text;			
		
	}
	public int getFld_nbr() {
		return fld_nbr;
	}
	public String getA_value() {
		if (a_value==null||a_value.equals(""))
		{text = "";}
	else
		{text = "\""+a_value+"\"";}
	return text;		
	}
	public String getD_value() {
		if (d_value==null)
				{text = "";}
		else
			{String date =(d_value!=null?df2.format(d_value).toString():""); 
			if (date.equals("17000101"))
				{text = "";}
			else
				{text ="\"" + df.format(d_value).toString() + "\"";;}}
		return text;		
	}
	public float getN_value() {
		return n_value;
	}
	public String getUser_id() {
		if (user_id==null||user_id.equals(""))
		{text = "";}
	else
		{text = "\""+user_id+"\"";}
	return text;
	}
	public int getPos_level() {
		return pos_level;
	}
	public String getCurrency_code() {
		if (currency_code==null||currency_code.equals(""))
		{text = "";}
	else
		{text = "\""+currency_code+"\"";}
	return text;		
	}
	public String getAction_code() {
		if (action_code==null||action_code.equals(""))
		{text = "";}
	else
		{text = "\""+action_code+"\"";}
	return text;
	}
	public String getReason_01() {
		if (reason_01==null||reason_01.equals(""))
		{text = "";}
	else
		{text = "\""+reason_01+"\"";}
	return text;
	}
	public String getReason_02() {
		if (reason_02==null||reason_02.equals(""))
		{text = "";}
	else
		{text = "\""+reason_02+"\"";}
	return text;
	}
	public String getAnt_end_date() {
		if (ant_end_date==null)
			{text = "";}
		else
			{String date =(ant_end_date!=null?df2.format(ant_end_date).toString():""); 
			if (date.equals("17000101"))
				{text = "";}
			else
				{text ="\"" + df.format(ant_end_date).toString() + "\"";;}}
		return text;	
		
	}
	
		
}
